<template>
	<view class="page" :style="themeColor">

		<view class="flex benben-position-layout flex flex-wrap align-center messageDetails_flex_0"
			:style="{height:(64+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub messageDetails_fd0_0'>
				<view class='flex flex-wrap align-center justify-center messageDetails_fd0_0_c0'
					@tap.stop="handleJumpDiy" data-type="back" data-url="1">
					<text class='fu-iconfont2  messageDetails_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-stretch justify-center'>
					<text class='messageDetails_fd0_0_c1_c0'>系统设置</text>
				</view>
				<view class='flex flex-wrap align-center messageDetails_fd0_0_c0'>
				</view>
			</view>

		</view>
		<view :style="{height: (64+StatusBarRpx)+'rpx'}"></view>

		<!---flex布局flex布局开始-->
		<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout mine_flex_2">
			<view class='flex flex-direction flex-wrap align-stretch mine_fd2_0'>
				<view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/xtsz/changePwd/changePwd`">
					<text class='mine_fd2_0_c1_c1'>账户与安全</text>
					<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "12.png"'></image>
				</view>
				<view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/xtsz/feedBack/feedBack`">
					<text class='mine_fd2_0_c1_c1'>意见反馈</text>
					<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "12.png"'></image>
				</view>
				<view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/dlzc/agreement/agreement?aid=1`">
					<text class='mine_fd2_0_c1_c1'>用户注册协议</text>
					<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "12.png"'></image>
				</view>
				<view class='flex flex-wrap align-center mine_fd2_0_c1'@tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/dlzc/agreement/agreement?aid=2`">
					<text class='mine_fd2_0_c1_c1'>隐私政策</text>
					<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "12.png"'></image>
				</view>
				<!-- <view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/xtsz/contactUs/contactUs`">
					<text class='mine_fd2_0_c1_c1'>联系我们</text>
					<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "49.png"'></image>
				</view> -->
				<view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/xtsz/aboutUs/aboutUs`">
					<text class='mine_fd2_0_c1_c1'>关于我们</text>
					<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "12.png"'></image>
				</view>
				<!-- <view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="popupShow1686967413689 = true">
					<text class='mine_fd2_0_c1_c1'>清除缓存</text>
					<text class='mine_fd2_0_c4_c2'>12.5M</text>
					<image class='mine_fd2_0_c4_c3' mode="aspectFit" :src='STATIC_URL + "49.png"'></image>
				</view> -->
				<view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="editionRenewalFunc()">
					<text class='mine_fd2_0_c1_c1'>检查更新</text>
					<text class='mine_fd2_0_c4_c2'>{{appVersion}}</text>
					<image class='mine_fd2_0_c4_c3' mode="aspectFit" :src='STATIC_URL + "12.png"'></image>
				</view>
				<!-- <view class='flex flex-wrap align-center mine_fd2_0_c1' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/xtsz/system/system`">
					<text class='mine_fd2_0_c1_c1'>设置</text>
					<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "49.png"'></image>
				</view> -->
				
				<view class='flex flex-wrap justify-between align-center mine_fd2_0_c1' @tap.stop="pickerDiy1683966462102 = true">
					<text class='mine_fd2_0_c1_c1'>切换发音标准</text>
					<view>
						<text class='mine_fd2_0_c4_c2' v-if="languageType == 1">美式发音</text>
						<text class='mine_fd2_0_c4_c2' v-else>英式发音</text>
						<image class='mine_fd2_0_c1_c2' mode="aspectFit" :src='STATIC_URL + "12.png"'></image>
					</view>
				</view>
			</view>
		</view>

		<!---flex布局flex布局结束-->
		<benben-popup v-model="popupShow1686967413689" :mask="true" mode='center'>
			<!---清除缓存flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center mine_flex_3"
				@tap.stop="popupShow1650940432200 = true">
				<text class='mine_fd3_0'>提示</text>
				<text class='mine_fd3_1'>确定要清除本地缓存？</text>
				<view class='flex flex-wrap align-center mine_fd3_2'>
					<button class='mine_fd3_2_c0' @tap.stop="popupShow1686967413689 = false">取消</button>
					<button class='mine_fd3_2_c1' @tap.stop="popupShow1686967413689 = false">确定</button>
				</view>
			</view>

			<!---清除缓存flex布局结束-->

		</benben-popup>
		
		
		<!--选择发音标准开始 -->
		<benben-picker ref="benbenWritePickerCodepicker2" :visible.sync="pickerDiy1683966462102"
			:value.sync='languageType' :options='options' mode='selector' :mask-show='true' :timeout='true'
			:picker-height='88' default-type='value' :default-props='{ "label": "name", "value": "value" }' @change="selectLanguage">
			<template #picker-header>
				<view class='flex flex-wrap align-center justify-between myInformation_picker2_0'>
					<text @tap="$refs.benbenWritePickerCodepicker2.cancel()">取消</text>
					<text>切换发音标准</text>
					<text class='myInformation_picker2_0_c2'
						@tap="$refs.benbenWritePickerCodepicker2.pickerConfirm()">确认</text>
				</view>
			</template>
		</benben-picker>
		<!--选择发音标准结束 -->
		
		
		<view class="logo_out_info">
			<view class="logo_out" @tap.stop="openLoginout">退出登录</view>
		</view>
		
		<uv-modal width="300rpx" :showCancelButton="true" :closeOnClickOverlay="false" confirmColor="#4087FD" ref="modal" title="提示" content='确定退出当前账号？' align="center" @confirm="confirm"></uv-modal>
		
		<app-update ref="update"></app-update>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"popupShow1686967413689": false,
				"pickerDiy1683966462102": false,
				"options": [{
					"name": "美式发音",
					"value": "1",
					"image": ""
				}, {
					"name": "英式发音",
					"value": "2",
					"image": ""
				}],
				"languageType": 1,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
			isLogin() {
				return this.$store.state.token == '' ? false : true;
			},
			appVersion() {
				// 获取版本号
				return this.$store.state.appVersion
			}
		},
		watch: {},
		onLoad(options) {
			
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.$store.dispatch('getAppVersion') // 更新版本号
			this.languageType = uni.getStorageSync('languageType');
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			openLoginout() {
				this.$refs.modal.open();
			},
			// 弹窗确定按钮
			confirm() {
				this.$refs.modal.close();
				this.$store.commit('logout');
				uni.reLaunch({
					url: '/pages/tabBar/login/login'
				})
			},
			selectLanguage(e) {
				uni.setStorageSync('languageType', e.value);
			},
			//版本更新
			editionRenewalFunc() {
				this.$util.debounce(
					() => {
						this.$refs.update.checkAppUpdate()
					},
					1000,
					true
				)
			}
		}
	};
</script>
<style lang="scss" scoped>
	
	.myInformation_picker2_0_c2 {
		color: #4087FD;
		font-size: 25rpx;
	}
	
	.myInformation_picker2_0 {
		border-bottom: 1px solid #eee;
		background: #fff;
		padding: 0rpx 25rpx 0rpx 25rpx;
		line-height: 64rpx;
		border-radius: 10rpx 10rpx 0rpx 0rpx;
		font-size: 25rpx;
	}
	
	.logo_out_info {
		position: fixed;
		left: 0rpx;
		bottom: 0rpx;
		padding: 0 25rpx 35rpx 25rpx;
		width: 100%;
	}
	.logo_out {
		width: 100%;
		height: 68rpx;
		background: #4087FD;
		border-radius: 34rpx;
		line-height: 68rpx;
		font-size: 25rpx;
		color: #fff;
		text-align: center;
	}
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(248, 248, 248, 1);
		background-size: 100% auto !important;
	}

	.messageDetails_flex_0 {
		background: #fff;
		width: 100%;
		height: 64rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.messageDetails_fd0_0_c1_c0 {
		font-size: 25rpx;
		font-weight: 500;
		color: #333333;
		line-height: 64rpx;
	}

	.messageDetails_fd0_0_c0_c0 {
		font-size: 25rpx;
		color: #333;
	}

	.messageDetails_fd0_0_c0 {
		width: 25rpx;
		height: 25rpx;
	}

	.messageDetails_fd0_0 {
		padding: 0rpx 25rpx 0rpx 25rpx;
	}

	.mine_flex_0 {
		width: 100%;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
	}

	.mine_fd0_0_c2_c1 {
		position: absolute;
		right: -10rpx;
		top: -10rpx;
	}

	.mine_fd0_0_c2_c0 {
		width: 48rpx;
		height: 48rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.mine_fd0_0_c2 {
		width: 50rpx;
		height: 50rpx;
		position: relative;
	}

	.mine_fd0_0_c0 {
		width: 50rpx;
		height: 50rpx;
	}

	.mine_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.mine_flex_1 {
		// background: url(/static/images/21.png) no-repeat, transparent;
		background-size: 100% auto !important;
		// padding: 136rpx 0rpx 0rpx 0rpx;
	}

	.mine_fd1_2_c1_c1 {
		background: rgba(225, 225, 225, 1);
		width: 1rpx;
		height: 74rpx;
		margin: 0rpx 146rpx 0rpx 146rpx;
		transform: scaleX(0.5);
	}

	.mine_fd1_2_c1_c0_c1 {
		padding: 13rpx 0rpx 0rpx 0rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #333333;
		line-height: 36rpx;
	}

	.mine_fd1_2_c1_c0_c0 {
		width: 60rpx;
		height: 60rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.mine_fd1_2_c1 {
		background: #fff;
		background-size: 100% auto !important;
	}

	.mine_fd1_2_c0_c0 {
		color: #393939;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
	}

	.mine_fd1_2_c0 {
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.mine_fd1_2 {
		background: #fff;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0rpx 32rpx 0rpx 32rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
	}

	.mine_fd1_0_c1_c1 {
		width: 24rpx;
		height: 24rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 0rpx 15rpx;
	}

	.mine_fd1_0_c1_c0 {
		padding: 0rpx 0rpx 0rpx 8rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 33rpx;
	}

	.mine_fd1_0_c1 {
		line-height: 40rpx;
	}

	.mine_fd1_0_c0_c1 {
		margin: 0rpx 0rpx 0rpx 24rpx;
		font-size: 36rpx;
		font-weight: 500;
		color: #fff;
		max-width: 150rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.mine_fd1_0_c0_c0 {
		width: 104rpx;
		height: 104rpx;
		border-radius: 52rpx 52rpx 52rpx 52rpx;
	}

	.mine_fd1_0 {
		padding: 0rpx 40rpx 37rpx 40rpx;
	}

	.mine_flex_2 {
		padding: 0rpx 25rpx 0rpx 25rpx;
		margin: 16rpx 0rpx 0rpx 0rpx;
	}

	.mine_fd2_0_c4_c3 {
		width: 11rpx;
		height: 20rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.mine_fd2_0_c4_c2 {
		color: #666666;
		font-size: 20rpx;
		font-weight: 400;
		line-height: 33rpx;
		margin: 0rpx 020rpx 0rpx auto;
	}

	.mine_fd2_0_c1_c2 {
		width: 11rpx;
		height: 20rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 0rpx 0rpx auto;
	}

	.mine_fd2_0_c1_c1 {
		font-size: 20rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #333333;
	}

	.mine_fd2_0_c1_c0 {
		width: 44rpx;
		height: 44rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.mine_fd2_0_c1 {
		padding: 25rpx 0rpx 25rpx 0rpx;
		border-bottom: 1px solid #eee;
	}

	.mine_fd2_0_c0_c0 {
		color: #393939;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
	}

	.mine_fd2_0 {
		background: rgba(255, 255, 255, 1);
		border-radius: 10rpx;
		padding: 16rpx 25rpx 16rpx 25rpx;
	}

	.mine_flex_3 {
		background: #fff;
		width: 540rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.mine_fd3_2_c1 {
		border-top: 1px solid #eee;
		border-left: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: rgba(205, 150, 45, 1);
		width: 270rpx;
	}

	.mine_fd3_2_c0 {
		border-top: 1px solid #eee;
		background: #fff;
		line-height: 110rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		padding: 0rpx 103rpx 0rpx 103rpx;
	}

	.mine_fd3_2 {
		margin: 37rpx 0rpx 0rpx 0rpx;
	}

	.mine_fd3_1 {
		line-height: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
	}

	.mine_fd3_0 {
		font-size: 36rpx;
		font-weight: 800;
		line-height: 44rpx;
		color: #333333;
		margin: 40rpx 0rpx 40rpx 0rpx;
	}
</style>